improper integrals using residue theorem